Region

@Serializable
data class Region(val id: Int, val name: String, val locations: List<Handle.Named<Location>>, val mainGeneration: Handle.Named<Generation>?, val names: List<Name>, val pokedexes: List<Handle.Named<Pokedex>>, val versionGroups: List<Handle.Named<VersionGroup>>) : NamedModel(source)

A region is an organized area of the Pokémon world. Most often, the main difference between regions is the species of Pokémon that can be encountered within them. See: https://pokeapi.co/docs/v2#regions

Parameters

id

The identifier for this resource.

name

The name for this resource.

locations

A list of locations that can be found in this region.

mainGeneration

The generation this region was introduced in.

names

The name of this resource listed in different languages.

pokedexes

A list of pokédexes that catalogue Pokémon in this region.

versionGroups

A list of version groups where this region can be visited.

Constructors

Link copied to clipboard
constructor(id: Int, name: String, locations: List<Handle.Named<Location>>, mainGeneration: Handle.Named<Generation>?, names: List<Name>, pokedexes: List<Handle.Named<Pokedex>>, versionGroups: List<Handle.Named<VersionGroup>>)

Properties

Link copied to clipboard
open override val id: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val name: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard